package org.batatasframework.web.element;

public class TableBody extends AbstractElementCollection<TableTr>{
	
	private TableBody(String name){
		super(name);
	}
	
	public static TableBody tbody(){
		return new TableBody("tbody");
	}
	
	public static TableBody thead(){
		return new TableBody("thead");
	}

	public static TableBody tfoot(){
		return new TableBody("tfoot");
	}
	
	public TableTr tr(TableTd ...tds){
		return addElement(new TableTr(tds));
	}

	@Override
	protected TableTr createElement() {
		return new TableTr();
	}
}